
package gov.chinatax.ctcps.generator.form;

import java.text.ParseException;
import java.text.SimpleDateFormat;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionError;
import org.apache.struts.action.ActionErrors;
import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

/**
 * Form for zfzbZt.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/"/>Middlegen</a>
 *
 * @struts.form name="zfzbZtForm"
 */
public class ZfzbZtForm extends ActionForm {

   private final static SimpleDateFormat FORMAT = new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");

   private java.lang.String _hfztbh = null;
   private java.lang.String _nd = null;
   private java.lang.String _hfmc = null;
   private java.lang.String _dwbh = null;
   private java.lang.String _sjzt = null;
   private java.lang.String _cjsj = null;
   private java.lang.String _xdsj = null;
   private java.lang.String _xjzt = null;
   private java.lang.String _qrsj = null;
   private java.lang.String _sbsj = null;
   private java.lang.String _sjhfztbh = null;
   private java.lang.String _bhyy = null;
   private java.lang.String _bz = null;
   private java.lang.String _zjhfztbh = null;
   private java.lang.String _zt1 = null;
   private java.lang.String _zt2 = null;

   /**
    * Standard constructor.
    */
   public ZfzbZtForm() {
   }

   /**
    * Returns the hfztbh
    *
    * @return the hfztbh
    */
   public java.lang.String getHfztbh() {
      return _hfztbh;
   }

   /**
    * Sets the hfztbh
    *
    * @param hfztbh the new hfztbh value
    */
   public void setHfztbh(java.lang.String hfztbh) {
      _hfztbh = hfztbh;
   }
   /**
    * Returns the nd
    *
    * @return the nd
    */
   public java.lang.String getNd() {
      return _nd;
   }

   /**
    * Sets the nd
    *
    * @param nd the new nd value
    */
   public void setNd(java.lang.String nd) {
      _nd = nd;
   }
   /**
    * Returns the hfmc
    *
    * @return the hfmc
    */
   public java.lang.String getHfmc() {
      return _hfmc;
   }

   /**
    * Sets the hfmc
    *
    * @param hfmc the new hfmc value
    */
   public void setHfmc(java.lang.String hfmc) {
      _hfmc = hfmc;
   }
   /**
    * Returns the dwbh
    *
    * @return the dwbh
    */
   public java.lang.String getDwbh() {
      return _dwbh;
   }

   /**
    * Sets the dwbh
    *
    * @param dwbh the new dwbh value
    */
   public void setDwbh(java.lang.String dwbh) {
      _dwbh = dwbh;
   }
   /**
    * Returns the sjzt
    *
    * @return the sjzt
    */
   public java.lang.String getSjzt() {
      return _sjzt;
   }

   /**
    * Sets the sjzt
    *
    * @param sjzt the new sjzt value
    */
   public void setSjzt(java.lang.String sjzt) {
      _sjzt = sjzt;
   }
   /**
    * Returns the cjsj
    *
    * @return the cjsj
    */
   public java.lang.String getCjsj() {
      return _cjsj;
   }

   /**
    * Sets the cjsj
    *
    * @param cjsj the new cjsj value
    */
   public void setCjsj(java.lang.String cjsj) {
      _cjsj = cjsj;
   }
   /**
    * Returns the xdsj
    *
    * @return the xdsj
    */
   public java.lang.String getXdsj() {
      return _xdsj;
   }

   /**
    * Sets the xdsj
    *
    * @param xdsj the new xdsj value
    */
   public void setXdsj(java.lang.String xdsj) {
      _xdsj = xdsj;
   }
   /**
    * Returns the xjzt
    *
    * @return the xjzt
    */
   public java.lang.String getXjzt() {
      return _xjzt;
   }

   /**
    * Sets the xjzt
    *
    * @param xjzt the new xjzt value
    */
   public void setXjzt(java.lang.String xjzt) {
      _xjzt = xjzt;
   }
   /**
    * Returns the qrsj
    *
    * @return the qrsj
    */
   public java.lang.String getQrsj() {
      return _qrsj;
   }

   /**
    * Sets the qrsj
    *
    * @param qrsj the new qrsj value
    */
   public void setQrsj(java.lang.String qrsj) {
      _qrsj = qrsj;
   }
   /**
    * Returns the sbsj
    *
    * @return the sbsj
    */
   public java.lang.String getSbsj() {
      return _sbsj;
   }

   /**
    * Sets the sbsj
    *
    * @param sbsj the new sbsj value
    */
   public void setSbsj(java.lang.String sbsj) {
      _sbsj = sbsj;
   }
   /**
    * Returns the sjhfztbh
    *
    * @return the sjhfztbh
    */
   public java.lang.String getSjhfztbh() {
      return _sjhfztbh;
   }

   /**
    * Sets the sjhfztbh
    *
    * @param sjhfztbh the new sjhfztbh value
    */
   public void setSjhfztbh(java.lang.String sjhfztbh) {
      _sjhfztbh = sjhfztbh;
   }
   /**
    * Returns the bhyy
    *
    * @return the bhyy
    */
   public java.lang.String getBhyy() {
      return _bhyy;
   }

   /**
    * Sets the bhyy
    *
    * @param bhyy the new bhyy value
    */
   public void setBhyy(java.lang.String bhyy) {
      _bhyy = bhyy;
   }
   /**
    * Returns the bz
    *
    * @return the bz
    */
   public java.lang.String getBz() {
      return _bz;
   }

   /**
    * Sets the bz
    *
    * @param bz the new bz value
    */
   public void setBz(java.lang.String bz) {
      _bz = bz;
   }
   /**
    * Returns the zjhfztbh
    *
    * @return the zjhfztbh
    */
   public java.lang.String getZjhfztbh() {
      return _zjhfztbh;
   }

   /**
    * Sets the zjhfztbh
    *
    * @param zjhfztbh the new zjhfztbh value
    */
   public void setZjhfztbh(java.lang.String zjhfztbh) {
      _zjhfztbh = zjhfztbh;
   }
   /**
    * Returns the zt1
    *
    * @return the zt1
    */
   public java.lang.String getZt1() {
      return _zt1;
   }

   /**
    * Sets the zt1
    *
    * @param zt1 the new zt1 value
    */
   public void setZt1(java.lang.String zt1) {
      _zt1 = zt1;
   }
   /**
    * Returns the zt2
    *
    * @return the zt2
    */
   public java.lang.String getZt2() {
      return _zt2;
   }

   /**
    * Sets the zt2
    *
    * @param zt2 the new zt2 value
    */
   public void setZt2(java.lang.String zt2) {
      _zt2 = zt2;
   }


   /**
    * Validate the properties that have been set from this HTTP request,
    * and return an <code>ActionErrors</code> object that encapsulates any
    * validation errors that have been found.  If no errors are found, return
    * <code>null</code> or an <code>ActionErrors</code> object with no
    * recorded error messages.
    *
    * @param mapping The mapping used to select this instance
    * @param request The servlet request we are processing
    */
   public ActionErrors validate(ActionMapping mapping, HttpServletRequest request) {
      ActionErrors errors = new ActionErrors();
      // test for nullity
      if(getHfztbh() == null) {
         errors.add("hfztbh", new ActionError("error.hfztbh.required"));
      }
      if(getNd() == null) {
         errors.add("nd", new ActionError("error.nd.required"));
      }
      if(getDwbh() == null) {
         errors.add("dwbh", new ActionError("error.dwbh.required"));
      }
      // TODO test format/data
      return errors;
   }
}
